package com.eb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eb.domain.User;
import com.eb.dto.EditUserDto;
import com.eb.dto.RegisterUserDto;
import com.eb.vo.GetInfoUserVO;

public interface UserService extends IService<User> {
    /**
     * 用户注册
     * @param userDto
     * @return
     */
    boolean register(RegisterUserDto userDto);

    /**
     * 用户登录
     *
     */
    String login(String username,String password);

    /**
     * 获取用户信息
     * @param currentId
     * @return
     */
    GetInfoUserVO getUserInfo(Integer currentId);

    /**
     * 修改用户信息
     * @param userDto
     */
    void updateUserInfo(EditUserDto userDto);
}
